package com.mobile.persistent.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.mobile.persistent.base.BaseEntity;

/**
 * @author qingqiu
 * 商品类别
 */
@Entity
@Table(name="goodsCategory")
@org.hibernate.annotations.Entity(dynamicInsert=true, dynamicUpdate=true)
public class GoodsCategory extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	/**
	 * 类别名称
	 */
	private String categoryName;
	/**
	 * 类别简称
	 */
	private String nickName;
	/**
	 * 父类别id
	 */
	private long parentId;
	
	@Column(name="categoryName", columnDefinition="varchar(20)", nullable=false)
	public String getCategoryName() {
		return categoryName;
	}
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	@Column(name="nickName", columnDefinition="varchar(10)")
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	@Column(name="parentId", columnDefinition="bigint")
	public long getParentId() {
		return parentId;
	}
	public void setParentId(long parentId) {
		this.parentId = parentId;
	}
	
}
